#!/usr/bin/env bash

# Train and test STAViS audiovisual models for all splits

base_path='./experiments'

split=1
# results_path='split'${split}'_results'
# mkdir -p ${base_path}'/'${results_path}

python main.py --gpu_devices 1 --batch_size 32 --n_threads 4 \
    --explain "low batch test" \
    --audiovisual True --checkpoint 10 --n_epochs 60 \
    --no_test \
    --attn_dropout 0.1 \
    --out_dropout 0.0 \
    --lr_transformer 1e-2 \
    --use_transformer \
    --num_heads 8 \
    --result_path audiovisual_split1_transFusion \
    --resume_path ./experiments/audiovisual_split1_transFusion/save_50.pth \
    --nlevels 5 \
    --root_path ${base_path} \
    --attn_mask \
    --pretrain_path ./data/pretrained_models/stavis_visual_only/visual_split${split}_save_60.pth  \
    --audio_pretrain_path ./data/pretrained_models/soundnet8.pth \
  	--annotation_path_coutrot1_train ./data/fold_lists/Coutrot_db1_list_train_${split}_fps.txt \
  	--annotation_path_coutrot1_test ./data/fold_lists/Coutrot_db1_list_test_${split}_fps.txt \
  	--annotation_path_coutrot2_train ./data/fold_lists/Coutrot_db2_list_train_${split}_fps.txt \
  	--annotation_path_coutrot2_test ./data/fold_lists/Coutrot_db2_list_test_${split}_fps.txt \
  	--annotation_path_summe_train ./data/fold_lists/SumMe_list_train_${split}_fps.txt \
  	--annotation_path_summe_test ./data/fold_lists/SumMe_list_test_${split}_fps.txt \
  	--annotation_path_etmd_train ./data/fold_lists/ETMD_av_list_train_${split}_fps.txt \
  	--annotation_path_etmd_test ./data/fold_lists/ETMD_av_list_test_${split}_fps.txt \
  	--annotation_path_avad_train ./data/fold_lists/AVAD_list_train_${split}_fps.txt \
  	--annotation_path_avad_test ./data/fold_lists/AVAD_list_test_${split}_fps.txt

# python main.py --gpu_devices 0,1 --batch_size 128 --n_threads 12 \
#     --no_test \
#     --audiovisual True --checkpoint 10 --n_epochs 60 \
#     --root_path ${base_path} --result_path audiovisual_split1_biliFusion \
#     --pretrain_path ./data/pretrained_models/stavis_visual_only/visual_split${split}_save_60.pth  \
#     --audio_pretrain_path ./data/pretrained_models/soundnet8.pth \
#   	--annotation_path_coutrot1_train ./data/fold_lists/Coutrot_db1_list_train_${split}_fps.txt \
#   	--annotation_path_coutrot1_test ./data/fold_lists/Coutrot_db1_list_test_${split}_fps.txt \
#   	--annotation_path_coutrot2_train ./data/fold_lists/Coutrot_db2_list_train_${split}_fps.txt \
#   	--annotation_path_coutrot2_test ./data/fold_lists/Coutrot_db2_list_test_${split}_fps.txt \
#   	--annotation_path_summe_train ./data/fold_lists/SumMe_list_train_${split}_fps.txt \
#   	--annotation_path_summe_test ./data/fold_lists/SumMe_list_test_${split}_fps.txt \
#   	--annotation_path_etmd_train ./data/fold_lists/ETMD_av_list_train_${split}_fps.txt \
#   	--annotation_path_etmd_test ./data/fold_lists/ETMD_av_list_test_${split}_fps.txt \
#   	--annotation_path_avad_train ./data/fold_lists/AVAD_list_train_${split}_fps.txt \
#   	--annotation_path_avad_test ./data/fold_lists/AVAD_list_test_${split}_fps.txt
